package leetCode;

/**
 * TODO
 *
 * @author 司松坡
 * @createTime 2023年04月06日
 */
public class LeetCode344 {
    public void reverseString(char[] s) {
        int right = s.length - 1;
        int left = 0;
        char mid ;
        while (right > left){
            mid = s[right];
            s[right] = s[left];
            s[left] = mid;
            right--;
            left++;
        }
    }
}
